# Contributor: Newbyte <newbyte@disroot.org>
# Maintainer: Newbyte <newbyte@disroot.org>
pkgname=py3-baron
pkgver=0.9
pkgrel=1
pkgdesc="Full Syntax Tree for Python to make writing refactoring code a realist task"
url="https://github.com/PyCQA/baron"
arch="noarch"
license="LGPL-3.0-or-later"
depends="python3 py3-rply"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://files.pythonhosted.org/packages/source/b/baron/baron-$pkgver.tar.gz"
builddir="$srcdir/baron-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
0eb1be732166d44e344df8f9b23843d63986392c9ca5512389742594334b70bffaeec2d336b8e7da2c4287d464a1690ffc28c0cb2910b43c63128e11e97c1c6d  baron-0.9.tar.gz
"
